Custom Views / View Controllers

  • SealedVoucherView is a sealed EnvelopeView. It shows ribbons and a seal overtop of an EnvelopeView.

    See more

    Declaration

    Objective-C

    @interface SealedVoucherView : UIView

    Swift

    class SealedVoucherView : UIView
  • The VouchrLoadingViewProtocol is responsible for animating any custom loading view. It is used for fullscreen loading views.

    Note

    User is responsible for adding the loading view as a subview and constraining it to the view it should appear on.
    See more

    Declaration

    Objective-C

    @protocol VouchrLoadingViewProtocol

    Swift

    protocol VouchrLoadingViewProtocol
  • Undocumented

    See more

    Declaration

    Objective-C

    @protocol VouchrDialogViewProtocol
    
    - (void)showOnParentViewController:(UIViewController *)parentViewController;
    - (void)setTitle:(nullable NSString *)title;
    - (void)setBodyText:(nullable NSString *)body;
    - (void)setPositiveButtonText:(NSString *)buttonText withCompletionHandler:(nullable void (^)(void))completionHandler;
    - (void)setNegativeButtonText:(NSString *)buttonText withCompletionHandler:(nullable void (^)(void))completionHandler;
    - (void)setError:(nullable NSError *)error;
    - (void)setView:(UIView *)view;
    - (void)dismiss;
    
    @end

    Swift

    protocol VouchrDialogViewProtocol
  • VouchrActionSheetViewController is a custom action sheet used by the SDK. It works similarly to a UIAlertController with style UIAlertControllerStyleActionSheet. Each action sheet item is an action in the controller. If there are too many actions to fit on screen, the actions will become scrollable. A cancel action is automatically added.

    See more

    Declaration

    Objective-C

    @interface VouchrActionSheetViewController : UIViewController

    Swift

    class VouchrActionSheetViewController : UIViewController
  • The VouchrActionSheetViewControllerDelegate protocol is responsible for responding to VouchrActionSheetItem selection and dismissing the VouchrActionSheetViewController.

    See more

    Declaration

    Objective-C

    @protocol VouchrActionSheetViewControllerDelegate <NSObject>

    Swift

    protocol VouchrActionSheetViewControllerDelegate : NSObjectProtocol
  • VouchrActionSheetItem represents one item inside a VouchrActionSheetViewController.

    See more

    Declaration

    Objective-C

    @interface VouchrActionSheetItem : NSObject

    Swift

    class VouchrActionSheetItem : NSObject